﻿
Public Class _Default

    Inherits System.Web.UI.Page


    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        If Request.Params("tagname") = "" Then

            GridView1.DataSourceID = "SqlDataSource1"

        Else

            GridView1.DataSourceID = "SqlDataSource3"

        End If

    End Sub

    Protected Sub ImageButton1_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton1.Click
        Response.Redirect("AddNewCar.aspx")

    End Sub
End Class